<script setup lang="ts">
interface Row {
  id: number
  date: string
  name: string
  address: string
}
defineProps<{
  rowItem: Row
}>()

defineEmits(['changeItem'])
</script>
<template>
  <div @click="$emit('changeItem', rowItem.id)">
    <div>日期：{{ rowItem.date }}</div>
    <div>名称：{{ rowItem.name }}</div>
    <div>地址：{{ rowItem.address }}</div>
    <div><button>删除</button></div>
  </div>
</template>
